﻿<%@ Page Language="vb" AutoEventWireup="false" CodeFile="DealFaultBillAuditConfirmForm.aspx.vb"
    Inherits="InSiteWebApplication.DealFaultBillAuditConfirmForm" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ Register Src="~/uMESCustomControls/pageTurning/pageTurning.ascx" TagName="pageTurning"
    TagPrefix="uPT" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>排故单审核确认</title>
    <script type="text/javascript" src="../../../../javascript/DateControl.js"></script>
    <style type="text/css">
        .div_disply_none
        {
            display: none;
        }
        .div_disply_yes
        {
            display: block;
        }
    </style>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
     <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
     <script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
</head>

<!-- Caution: modifying the id and runat attributes of the body will affect the integrity of the application. -->
<body class="FormBody" id="bodyControl" runat="server">
    <script type="text/javascript">
        window.onload = function () { var type = getParam("_Type").replace("%3fServiceType%3d", ""); if (type == "1") { $('#btnSubmit').css('display', 'inline-block'); } }
        function confirmMessage() {
            $(function () {
                $.messager.defaults = { ok: '是', cancel: '否', width: '250' };
                $.messager.confirm('提示', '是否提交军代表审核?', function (r) {
                    if (r) {
                        $("#<%=btnSubmitToArmy.ClientID%>").click();
                    } else {
                        $('#<%=btnSubmit.ClientID%>').click();
                    }
                });
            });
        }
        function LookDealBillSheet(id) {
            var url = 'DealFaultBillSheetPage.html?id=' + id;
            var someValue = window.showModalDialog(url, "", "dialogWidth:750px; dialogHeight:520px; status=no; center: Yes; resizable: NO;");
         }
    </script>
    <!-- Caution: modifying the id and runat attributes of the form will affect the integrity of the application. -->
    <form id="formControl" method="post" runat="server" >
    <div style="margin: 3px 0px 3px 3px">
        <div class="ufcSectionStyle">
            <span class="ufcSectionSpanStyle">查询区域</span>
        </div>
        <div style="width: 100%; margin-top: 5px; margin-bottom: 5px">
            <fb:TextBox ID="txtMachineSearch" runat="server" LabelControl-Text="发动机号" TextControl-Width="130px"
                Style="position: relative; top: 0px; float: left; left: 0px" />
            <fb:TextBox ID="txtMfgorder" runat="server" LabelControl-Text="订单号" TextControl-Width="120px"
                Style="position: relative; top: 0px; float: left; margin-left: 10px" />
            <fb:TextBox ID="txtPGD" runat="server" LabelControl-Text="排故单" TextControl-Width="120px"
                Style="position: relative; top: 0px; float: left; margin-left: 10px" />
            <fb:DropDownList ID="ddlStatus" runat="server" LabelControl-Text="状态" DropDownControl-Width="80px"
                Style="position: relative; top: 0px; float: left; margin-left: 10px" />
             <div style=" position:relative; width:260px; float: left;margin-left: 10px; top:-5px; ">
                <div style="position: relative; float: left; width: 120px; top:0px;">
                    <fb:Label ID="lblBeginTime" Text="排故时间(起)" runat="server" Font-Bold="false" Style="position: relative;"></fb:Label>
                    <igsch:WebDateChooser ID="txtBeginDate" runat="server" Style="position: relative;
                        float: left; left: 0px; top: 2px; width: 120px" type="text" NullDateLabel="">
                        <calendarlayout>
                        <CalendarStyle ForeColor="#3366CC">
                        </CalendarStyle>
                        <SelectedDayStyle BackColor="#3399FF" />
                        <TitleStyle BackColor="#72AFF3" ForeColor="White" />
                        <TodayDayStyle BackColor="#66CCFF"></TodayDayStyle>
                    </calendarlayout>
                    </igsch:WebDateChooser>
                </div>
                <div style="position: relative; float: left; width: 120px; left: 10px; top: 1px;">
                    <fb:Label ID="lblEndTime" Text="排故时间(止)" runat="server" Font-Bold="false" Style="position: relative;
                        float: left;"></fb:Label>
                    <igsch:WebDateChooser ID="txtEndDate" runat="server" Style="position: relative; float: left;
                        top=2px; width: 120px" type="text" NullDateLabel="">
                        <calendarlayout>
                        <CalendarStyle ForeColor="#3366CC">
                        </CalendarStyle>
                        <SelectedDayStyle BackColor="#3399FF" />
                        <TitleStyle BackColor="#72AFF3" ForeColor="White" />
                        <TodayDayStyle BackColor="#66CCFF"></TodayDayStyle>
                    </calendarlayout>
                    </igsch:WebDateChooser>
                </div>                
            </div>
            <fb:Button ID="btnSearch" runat="server" DisplayInFrame="false" Text="查询" Style="position: relative;
                float: left; top: 12px; margin-left: 10px; width: 60px;" />
            <fb:Button ID="btnReSet" runat="server" DisplayInFrame="false" Text="重置" Style="position: relative;
                float: left; top: 12px; margin-left: 10px; width: 60px;" />
        </div>
        <div class="ufcSectionStyle">
            <span class="ufcSectionSpanStyle">结果区域</span>
        </div>
        <div>
            <div style="float: left; position: relative;">
                <div style="width: 98%;">
                    <fbg:WebGrid ID="wgResult" runat="server" ColumnLabelsType="Default" Height="265px"
                        LabelsType="Designer" RowsPerPage="6" Width="98%">
                        <DisplayLayout BorderCollapseDefault="Separate" Name="wgProcess" OptimizeCSSClassNamesOutput="False"
                            RowHeightDefault="24px" StationaryMargins="Header" TableLayout="Fixed" Version="4.00"
                            AllowSortingDefault="OnClient" AutoGenerateColumns="False" CellClickActionDefault="RowSelect"
                            SelectTypeRowDefault="Single" AllowColSizingDefault="Free" HeaderClickActionDefault="SortSingle"
                            AllowRowNumberingDefault="Continuous">
                            <FrameStyle BorderColor="#A5ACB2" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                                Font-Size="8pt" Height="265px" Width="98%">
                            </FrameStyle>
                            <RowAlternateStyleDefault BackColor="#86DFD9" CssClass="GridRowAlternateStyle">
                                <Padding Left="0px"></Padding>
                            </RowAlternateStyleDefault>
                            <ClientSideEvents InitializeLayoutHandler="OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler(), OnInitializeLayoutHandler">
                            </ClientSideEvents>
                            <Pager PageSize="6">
                                <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                    <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                                </PagerStyle>
                            </Pager>
                            <EditCellStyleDefault BorderStyle="None" BorderWidth="0px" CssClass="GridEditCellStyle">
                            </EditCellStyleDefault>
                            <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" CssClass="GridHeaderStyle"
                                Height="100%" Wrap="True">
                                <Padding Top="2px" Bottom="3px"></Padding>
                                <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                            </HeaderStyleDefault>
                            <RowSelectorStyleDefault>
                                <Padding Left="0px"></Padding>
                            </RowSelectorStyleDefault>
                            <RowStyleDefault BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                CssClass="GridRowStyle" Font-Names="Verdana" Font-Size="8pt">
                                <Padding Left="3px"></Padding>
                                <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                            </RowStyleDefault>
                            <SelectedRowStyleDefault CssClass="GridSelectedRowStyle">
                            </SelectedRowStyleDefault>
                            <AddNewBox>
                                <BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                    <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                                </BoxStyle>
                            </AddNewBox>
                            <ActivationObject BorderColor="" BorderWidth="">
                            </ActivationObject>
                        </DisplayLayout>
                        <Bands>
                            <igtbl:UltraGridBand>
                                <addnewrow visible="NotSet" view="NotSet"></addnewrow>
                            </igtbl:UltraGridBand>
                        </Bands>
                    </fbg:WebGrid>
                </div>
                <div style="text-align: right; width: 98%; position: relative; left: -18px">
                    <uPT:pageTurning ID="upageTurning" runat="server" />
                </div>
            </div>            
            <fb:TextBox ID="txtType" runat="server" LabelControl-Text="类型" TextControl-Width="120px"
            Style="position: relative; top: 0px; float: left; margin-left: 10px; display:none; width:100%" />
           
        </div>
        <div class="divstyle" runat="server" id="divFaultDesc">
        <fb:TextBox ID="txtfaultDesc" runat="server" LabelControl-ForeColor ="Red" LabelControl-Text="故障情况" 
            LabelControl-Visible="true" Enabled="false" 
            TextControl-Width="1100px" TextControl-Height="60px" TextControl-TextMode="MultiLine"
            Style="position: relative; float: left; left: 3px; top: 0px; margin-top:5px;" />
        </div>
    </div>
    
    <div style="width: 1000px; margin-top:3px;">
        <fb:Button ID="btnSubmittest" runat="server" DisplayInFrame="false" style="margin-left:10px;display:none;" Text="确认"  />
        <fb:Button ID="btnSubmit" runat="server" DisplayInFrame="false" style="margin-left:10px;" Text="确认"   />
        <fb:Button ID="btnSubmitToArmy" runat="server" DisplayInFrame="false" style="margin-left:10px;display:none" Text="提交军代表"  />
        <fb:Button ID="btnCancle" runat="server" DisplayInFrame="false" style="margin-left:10px" Text="作废"  />
        <fb:PopupLinkButton ID="btnBillPrint" runat="server" PageName="DealFaultBillPrintForm.aspx?type=0"
            Text="排故单浏览" DisplayInFrame="false" Width="120px" Height="23px" PopupHeight="530px"
            PopupModalStyle="Independent" PopupWidth="900px" OnClick="btnBillPrint_Click"></fb:PopupLinkButton> 
        <fb:PopupLinkButton ID="btnBillSheet" runat="server" PageName="DealFaultBillSheetPage.html"
            Text="查看附页" DisplayInFrame="false" Width="120px" Height="23px" PopupHeight="530px"
            PopupModalStyle="Independent" PopupWidth="900px"></fb:PopupLinkButton> 
         <fb:PopupLinkButton ID="PopupLinkButton1" runat="server" PageName="DealFaultBillPrintForm.aspx?type=1"
            Text="排故单浏览(无机型)" DisplayInFrame="false" Width="150px" Height="23px" PopupHeight="530px"
            PopupModalStyle="Independent" PopupWidth="900px" OnClick="btnBillPrint_Click"></fb:PopupLinkButton> 
    </div>
    <div style="position: relative; float: left; top: 3px; width: 100%; left: 3px;">
        <asp:Label ID="StatusMessage" runat="server" Text="" Width="100%"></asp:Label>
        <asp:Button ID="popupClosedButton" runat="server" Width="0px" />
    </div>
    </form>
    

</body>
</html>
